package tech.aistar.entity;

import java.io.Serializable;

/**
 * Created by 张庆昇 on 2019/12/31.
 */
public class Phone implements Serializable {
    //对象标识
    private Integer id;

    //手机名称
    private String phoneName;


    //手机价格
    private Integer price;

    //手机对应的图片的名称或者图片的url
    private String imgUrl;

    public Phone() {
    }

    public Phone(String phoneName, Integer price,  String imgUrl) {
        this.phoneName = phoneName;
        this.price = price;
        this.imgUrl = imgUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }


    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Phone{");
        sb.append("id=").append(id);
        sb.append(", phoneName='").append(phoneName).append('\'');
        sb.append(", price='").append(price).append('\'');
        sb.append(", imgUrl='").append(imgUrl).append('\'');
        sb.append('}');
        return sb.toString();
    }

}
